package com.ado.abyss.core.service;

import java.util.List;

import com.ado.abyss.core.dal.model.SysDict;
import com.ado.abyss.core.params.page.PageRequest;
import com.github.pagehelper.PageInfo;

/**
 * 
 * @author adonais
 *
 */
public interface SysDictService {

	/**
	 * 根据名称查询
	 * @param lable
	 * @return
	 */
	List<SysDict> findByLabel(String label);

	/**
	 * 
	 * @param record
	 * @return
	 */
	boolean save(SysDict record);

	/**
	 * 
	 * @param records
	 * @return
	 */
	boolean delete(List<SysDict> records);

	/**
	 *
	 * @param pageRequest
	 * @return
	 */
	PageInfo<SysDict> findPage(PageRequest pageRequest);
}
